'''
Created on 26/04/2010

@author: Mar
'''
import time

from Instruction import *

class IOInstructionPrinter (Instruction):
    
    def __init__(self, aTime, aWord):
        self.time = aTime
        self.word = aWord
        self.id = "printer"
        
    def getType(self):
        return self.id
    
    
    def setTime(self, aTime):
        self.time = aTime
          
    def setWord(self, aWord):
        self.word = aWord
           
    def isPrinter(self):
        return True
     
    def execute(self):
        print("Printer instruction")
        time.sleep(1)